#ifndef KERNEL_H
#define KERNEL_H
#include "pgngame.h"

class Kernel
{
public:
    Kernel(QVector<moves_pair> moves = QVector<moves_pair>());
    void setGame(QVector<moves_pair> moves);
    bool nextMove();
    int size() const;
private:
    bool makePawnMove(chess_move c_move);
    bool makeWhiteMove(chess_move c_move);
    bool makeBlackMove(chess_move c_move);
    bool makeMove(chess_move c_move, bool is_white);
    QVector<moves_pair> m_gameMoves;
};

#endif // KERNEL_H
